export default class JiuJiuXiaoDongWu_pfutil {
    public static random(min, max) {
        return min + Math.floor(Math.random() * (max - min));
    }

    public static randSort(arr) {
        for (var i = 0, len = arr.length; i < len; i++) {
            var rand = JiuJiuXiaoDongWu_pfutil.random(0, arr.length);
            var temp = arr[rand];
            arr[rand] = arr[i];
            arr[i] = temp;
        }
    }

    public static removeVal(arr: Array<number>, val: number) {
        for (let i = 0; i < arr.length; i++) {
            if (arr[i] == val) {
                arr.splice(i, 1);
                return;
            }
        }
    }
}